define([
  'views/AlertMessageView',
  'hbs!template/confirmation-message'
], function(AlertMessageView, template){
  var ConfirmationMessageView = AlertMessageView.extend({    
    events: {
      "click a[name=close]":    "close",
      "click a[name=confirm]":	"confirm",
      "click a[name=cancel]":	"cancel"
    },
    
    initialize: function() {
      this.template = template;
    },
    
    confirm: function() {
      this.model.get("model").trigger("confirm_remove");
      this.close();
    },
    
    cancel: function() {
      this.close();
    }

  });

  return ConfirmationMessageView;
});